﻿using NesEmu.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NesEmu.Tests.Mock
{
    internal class MockBus : Bus
    {
        public MockBus(Emulator emulator) : base(emulator) { }

        public override ushort ReadWord(ushort address)
        {
            if (address == 0xfffc)
            {
                return 0;
            }

            return base.ReadWord(address);
        }

        public void InitializeMemory(byte[] array)
        {
            Array.Copy(array, _ram, array.Length);
        }
    }
}
